const Creeper = require('./model/Creeper')

function run(){
    const cree = new Creeper()
    const targetUrl = 'https://tieba.baidu.com/f?ie=utf-8&kw=%E5%A5%B3%E7%A5%9E&fr=search'
    const targetUrlList = [
        'https://tieba.baidu.com/f?kw=%E5%A5%B3%E7%A5%9E&&ie=utf-8&pn=250',
        'https://tieba.baidu.com/f?kw=%E5%A5%B3%E7%A5%9E&&ie=utf-8&pn=300',
        'https://tieba.baidu.com/f?kw=%E5%A5%B3%E7%A5%9E&&ie=utf-8&pn=350',
        'https://tieba.baidu.com/f?kw=%E5%A5%B3%E7%A5%9E&&ie=utf-8&pn=400'
    ]
    cree.setTargetUrlList(targetUrlList)
    cree.getUrlContent().then(() => {
        cree.downLoadImg()
    })
}
run()
// const cree = new Creeper()
// cree.testImg()